/*
* 生成上网套餐类
* */

package Question3;


public class InternetPackage  extends Package implements InternetServer {

    private int Internettraffic; //上网流量
    private double expenses; //每月资费

    public InternetPackage() {}

    public InternetPackage(int Internettraffic, double expenses) {
        setExpenses(expenses);
        setInternettraffic(Internettraffic);
    }

    public int getInternettraffic() {
        return Internettraffic;
    }

    public void setInternettraffic(int Internettraffic) {
        this.Internettraffic = Internettraffic;
    }

    public double getExpenses() {
        return expenses;
    }

    public void setExpenses(double expenses) {
        this.expenses = expenses;
    }
    
    @Override
    public void show() {
        System.out.println("套餐每月资费:" + expenses +"上网流量" + Internettraffic);
    }

    @Override
    public void InternetServer(int Internettraffic, TypeEnum type) {
        System.out.println("卡类型为：" + type + "上网流量为：" + Internettraffic);
    }
}
